<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreatePersonalTrialError extends Migration{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up(){
        //个人试错记录表
        Schema::create('personal_trial_error', function(Blueprint $table){
            $table->engine = 'MyISAM';
            $table->increments('id')->unsigned()->comment('自动增长主键');
            $table->string('username', 60)->default('')->comment('登录用户名');
            $table->string('password', 60)->default('')->comment('登录密码');
            $table->string('personal_login_ip', 60)->default('')->comment('登录IP');
            $table->timestamps();
        });
        //企业试错记录表
        Schema::create('company_trial_error', function(Blueprint $table){
            $table->engine = 'MyISAM';
            $table->increments('id')->unsigned()->comment('自动增长主键');
            $table->string('username', 60)->default('')->comment('登录用户名');
            $table->string('password', 60)->default('')->comment('登录密码');
            $table->string('company_login_ip', 60)->default('')->comment('登录IP');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down(){
        Schema::drop('personal_trial_error');
        Schema::drop('company_trial_error');
    }
}
